/**
 * Created by ZhangGong on 2017/7/8.
 */

function silder() {
    var wrap = document.querySelectorAll('silder-wrap');
    box = document.querySelector('slider-box'),
        img;
    box.style.width = wrap.offsetWidth * 4 + 'px';
    for (var i = 0; i < 4; i++) {
        img = document.createElement('img');
        img.src = '../img/banner'+i+'.jpg';
        img.offsetWidth = wrap.offsetWidth;
        box.appendChild(img);
    }
}
